<extend name="Public/base"/>
<block name="body">
<style>
     .h2 { height:13px;}
     input[type="checkbox"]{margin-top: -2px; margin-right: 3px;}
    .update-done{ line-height: 30px;}
</style>


<volist name="list" id="vo">
    <div class="widget-box clearfix">
        <div class="widget-title bg_lo"> <span class="icon"> <i class="icon-chevron-down"></i> </span>
            <h5 class="h2"><input type="checkbox" name="access[]" value="{$vo.id}_1" level="1" <if condition="$vo['access']">checked="checked"</if> />{$vo.title} &nbsp;&nbsp;<a href="{:U('Admin/Node/Add',array('pid'=>$vo['id'],'level'=>I('get.level',2)))}">添加菜单</a></h5>
        </div>
        <volist name="vo.child" id="ac">
        <div class="widget-content nopadding updates in collapse" style="height: auto;">
            <div class="new-update clearfix">
                  <div class="update-done">
                      <strong><input type="checkbox" name="access[]" value="{$ac.id}_2" level="2" <if condition="$ac['access']">checked="checked"</if> />{$ac.title} &nbsp;&nbsp;<a href="{:U('Admin/Node/Add',array('pid'=>$ac['id'],'level'=>I('get.level',3)))}">添加菜单</a></strong>
                      <span><volist name="ac.child" id="f"><input type="checkbox" name="access[]" value="{$f.id}_3" <if condition="$f['access']">checked="checked"</if> />{$f.title}&nbsp;&nbsp;&nbsp;</volist></span>     
                  </div>
            </div>
        </div>
        </volist>
    </div>
</volist>




<!--div class="widget-box">
          <div class="widget-title"> <span class="icon"> <i class="icon-th"></i> </span>
            <h5>{$meta_title}</h5>
             <div class="buttons">
             <if condition="($level eq 0)">
              <a class="btn"  href="{:U('Admin/Node/Add',array('pid'=>I('get.pid',0),'level'=>I('get.level',1)))}">添加菜单</a>
              <elseif condition="($level eq 1)"/>
              <a class="btn"  href="{:U('Admin/Node/Add',array('pid'=>I('get.pid',0),'level'=>I('get.level',2)))}">添加菜单</a>
              <elseif condition="($level eq 2)"/>
              <a class="btn"  href="{:U('Admin/Node/Add',array('pid'=>I('get.pid',0),'level'=>I('get.level',3)))}">添加菜单</a>
             </if>
                 
             </div>
           </div>
          <div class="widget-content ">
            <table class="table table-bordered table-striped with-check">
                <thead>
                <tr>
                    <td>ID</td>
                    <td>名称</td>
                    <td>描述</td>
                    <td>所属</td>
                    <td>排序</td>
                    <td>操作</td>
                </tr>
              </thead>
              <tbody>
                 <volist name="list" id="vo">
                    <tr>
                    <td>{$vo.id}</td>
                    <td><a href="{:U('Admin/Node/index',array('pid'=>$vo['id'],'level'=>$vo['level']))}">{$vo.name}</a></td>
                    <td>{$vo.title}</td>
                    <td>
                      <if condition="$vo['level'] eq 1">顶级菜单
                      <elseif condition="$vo['level'] eq 2">控制器
                      <elseif condition="$vo['level'] eq 3"/>动作方法</if>
                    </td>
                    <td>{$vo.sort}</td>
                    <td><a href="{:U('Admin/Node/Del',array('id'=>$vo['id']))}">删除</a></td>
                    </tr>
                 </volist>
              </tbody>
            </table>
          </div>
        </div-->
</block>












